package com.example.landlord.demo.utils.system;

public class Player{
    int index;//玩家的位置
    short score=0;//叫分
    int money=20;  //当局的积分
    int times=0;    //当前游戏中的倍数
    int read=0;     //玩家已读的消息
    boolean ready=false;    //准备
    User user;
    boolean online=false;   //是否在线
    boolean started=false;  //是否已经播放了发牌动画
    public Player(User user){
        this.user=user;
    }
    public Player(){}

    @Override
    public String toString() {
        return "Player{" +
                "index=" + index +
                ", score=" + score +
                ", money=" + money +
                ", times=" + times +
                ", read=" + read +
                ", ready=" + ready +
                ", user={" + user.toString() +
                "}, online=" + online +
                ", started=" + started +
                '}';
    }
}
